package net.wofly.sale.exchange.service;

import java.util.List;

import net.wofly.sale.exchange.domain.CardExchange;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;

public interface ICardExchangeService {

	/**
	 * 增加或修改
	 * 
	 * @param entity
	 * @return
	 */
	CardExchange save(CardExchange entity);

	/**
	 * 删除
	 * 
	 * @param entity
	 * @return
	 */
	void delete(CardExchange entity);

	/**
	 * 根据主键ID删除
	 * 
	 * @param key
	 * @return
	 */
	void delete(String key);

	/**
	 * 根据主键查询
	 * 
	 * @param key
	 * @return
	 */
	CardExchange findOne(String key);
	
	List<CardExchange> save(List<CardExchange> entityList) ;

	Page<CardExchange> findAll(Specification specification, Pageable pageable);
}
